package mvc.form;

public class ZhuceForm extends ActionForm implements Comparable {
	
	public ZhuceForm(){
		
	}
	
	public ZhuceForm(String username,String password1,String password2,String email){
		this.username=username;
		this.password1=password1;
		this.password2=password2;
		this.email = email;
	}
	
	private String username = "";
	
	private String password1="";
	
	private String password2="";
	
	private String email="";
	
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword1() {
		return password1;
	}

	public void setPassword1(String password1) {
		this.password1 = password1;
	}

	public String getPassword2() {
		return password2;
	}

	public void setPassword2(String password2) {
		this.password2 = password2;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	public boolean equals(Object o){
		boolean bool = false;
		if (this.username.equals(((ZhuceForm)o).getUsername())&&this.password1.equals(((ZhuceForm)o).getPassword1())&&
				this.getPassword2().equals(((ZhuceForm)o).getPassword2())&&this.getEmail().equals(((ZhuceForm)o).getEmail())){
			bool = true;
		}
		return bool;
	}
	
	public String toString(){
		return "username="+this.username+"||"+"password1="+this.password1+"||"+"password2="+this.password2+"||"+"email="+this.email;
	}
	
	@Override
	public int compareTo(Object o) {
		// TODO Auto-generated method stub
		return 0;
	}

}
